<?php


require_once ('./includes.php');

$id = $_GET['id'];

$img = imagenesQuery::create()->findPk($id);

$img->delete();

$host3 = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$extra = 'gestionImagenes.php';
header("Location: http://" . $host3 . $uri . "/" . $extra);
die();

?>
